$def with (page)

$ dev_nav1 = [
$     ("/developers", "Developers"),
$     ("/developers/api", "API"),
$     ("/data", "Data"),
$     ("/developers/licensing", "Licensing"),
$ ]

$ dev_nav2 = [
$   ("http://github.com/internetarchive/openlibrary/issues", "Bugs"),
$   ("http://github.com/internetarchive/openlibrary", "Source Code"),
$   ("http://code.openlibrary.org/", "OL Development"),
$ ]

$ tour_nav = [
$     ("/tour", "Welcome"),
$     ("/search/howto", "Searching Open Library"),
$     ("/tour/reading", "Reading Books"),
$     ("/tour/books", "Adding & Editing Books"),
$     ("/tour/subjects", "Using Subjects"),
$     ("/help/faq", "Open Library F.A.Q."),
$ ]

$if page.key in ["/developers","/data","/developers/api","/developers/licensing","/developers/ol","/developers/docs"]:
    <div class="subNav sansserif">
        $:render_template("lib/subnavigation", dev_nav1)
        <span style="float: left; padding: 0px 10px">&bull;</span>
        $:render_template("lib/subnavigation", dev_nav2)
    </div>
    <br style="clear: both;"/>

$if page.key.startswith("/tour"):
    <div class="subNav sansserif">
        $:render_template("lib/subnavigation", tour_nav)
    </div>
    <br style="clear: both;"/>
